#include "stdafx.h"
#include "CLaserPoint.h"

CLaserPoint::CLaserPoint()
{
	m_nJobIndex = -1;
	m_dSizeX = m_dSizeY = 4;
	m_bNeedRead = FALSE;
	m_bIsMotherCode = FALSE;
	m_bOrderSorted = m_bAttachMotherCode = FALSE;
	m_bIsSelect = FALSE;
	m_strCodeAttatch = _T("");
//	m_contentSource = SOURCE_LOCAL;
	m_contentType = TYPE_2D_CODE;
	m_dAngle = 0.0;
	m_dWeight = 0;
	m_dHeight = 0;
	m_strDivValue = _T("");
	for (int i = 0; i < LIGHT_NUM; i++)
		m_nLight[i] = 0;
	m_bFinished = FALSE;
}

CLaserPoint::~CLaserPoint()
{

}

CLaserPoint& CLaserPoint::operator=(const CLaserPoint &sp)
{
	if (this == &sp)
		return *this;
	m_nJobIndex = sp.m_nJobIndex;
	m_dRotateAngle = sp.m_dRotateAngle;
	m_strDivValue = sp.m_strDivValue;
	m_strCodeAttatch = sp.m_strCodeAttatch;
	m_bIsMotherCode = sp.m_bIsMotherCode;
	m_bAttachMotherCode = sp.m_bAttachMotherCode;
	m_bIsSelect = sp.m_bIsSelect;
	m_bEnbale = sp.m_bEnbale;
	m_bOrderSorted = sp.m_bOrderSorted;
	m_sPoint = sp.m_sPoint;
	m_bFinished = sp.m_bFinished;
	m_contentType = sp.m_contentType;
	m_strLaserCode = sp.m_strLaserCode;
	m_nOrder = sp.m_nOrder;
	m_bNeedRead = sp.m_bNeedRead;
	m_dAngle = sp.m_dAngle;
	m_dWeight = sp.m_dWeight;
	m_dHeight = sp.m_dHeight;

	for (int i = 0; i < LIGHT_NUM; i++)
	{
		m_nLight[i] = sp.m_nLight[i];
	}
	return *this;
}